package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 试卷对象 paper
 * 
 * @author ruoyi
 * @date 2022-11-19
 */
public class Paper extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 考卷id */
    private Long paperId;

    /** 考卷名 */
    @Excel(name = "考卷名")
    private String name;

    /** 题目数量 */
    @Excel(name = "题目数量")
    private Long count;

    /** 出卷人 */
    @Excel(name = "出卷人")
    private String producer;

    /** 出卷时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出卷时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date makeTime;

    public void setPaperId(Long paperId) 
    {
        this.paperId = paperId;
    }

    public Long getPaperId() 
    {
        return paperId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCount(Long count) 
    {
        this.count = count;
    }

    public Long getCount() 
    {
        return count;
    }
    public void setProducer(String producer) 
    {
        this.producer = producer;
    }

    public String getProducer() 
    {
        return producer;
    }
    public void setMakeTime(Date makeTime) 
    {
        this.makeTime = makeTime;
    }

    public Date getMakeTime() 
    {
        return makeTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("paperId", getPaperId())
            .append("name", getName())
            .append("count", getCount())
            .append("producer", getProducer())
            .append("makeTime", getMakeTime())
            .toString();
    }
}
